package com.stronger.pettern.decorator.decorator3;

/**
 * 具体装饰角色
 */
public class Wdecorator extends SkillDecorator{

    private String name;
    public Wdecorator(Hero hero, String name) {
        super(hero);
        this.name=name;
    }

    private void learn_W(){
        System.out.println("习得技能"+name);
    }

    public void learnSkill(){
        super.learnSkill();
        learn_W();
    }
}
